package birdsong.comm;

import java.io.Serializable;

public class ClientSideMessageImp implements Serializable, ClientSideMessage {
	
	public static final String SERVER = "localhost";
	
	private String nickname;
	private Type type;
	private String payload;
	
	public ClientSideMessageImp(String nickname, Type type, String payload) {
		this.nickname = nickname;
		this.type = type;
		this.payload = payload;
	}

	@Override
	public Type getType() {
		return type;
	}

	@Override
	public String getPayload() {
		return payload;
	}

	@Override
	public String getSendersNickname() {
		return nickname;
	}

}
